package com.kuiandjie.service;

import java.util.List;

import com.kuiandjie.dao.FileDao;
import com.kuiandjie.entity.Files;

public class FileService {
	private FileDao dao = new FileDao();

	public List<Files> findAllByFileTypeId(String folderid) {
		return dao.findAllByFileTypeId(folderid);
	}

	public void addFile(Files f) {
		dao.addFile(f);
		
	}

	public Files findByIdAndEmpId(String fileid, int id) {
		return dao.findByIdAndEmpId(fileid,id);
	}

	public void delById(String fileid) {
		dao.delById(fileid);
		
	}

	public Files findNameByFileName(String filename) {
		return dao.findNameByFileName(filename);
	}
	

}
